package cn.com.clearbus;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients(basePackages = "cn.com.clearbus") //才能找到 feign
@ComponentScan("cn.com.clearbus")
@EnableHystrix
@EnableCircuitBreaker //开启断路由支持
@EnableHystrixDashboard //开启仪表盘支持
public class ClientApplication {


    public static void main(String[] args) {
        SpringApplication.run(ClientApplication.class,args);
    }
}
